package task;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
public class Task {

    @Scheduled(cron = "0/5 * * * * ?")
    public void fun() {
        System.out.println("---定时任务---");
    }
}
